"use strict";
const { Model } = require("sequelize");
module.exports = (sequelize, DataTypes) => {
  class CameraCompare extends Model {
    /**
     * Helper method for defining associations.
     * This method is not a part of Sequelize lifecycle.
     * The `models/index` file will call this method automatically.
     */
    static associate(models) {
      // define association here
    }
  }
  CameraCompare.init(
    {
      sn: DataTypes.STRING,
      beUsed: DataTypes.STRING,
      pId: DataTypes.STRING,
      long: DataTypes.STRING,
      wide: DataTypes.STRING,
      height: DataTypes.STRING,
      clong: DataTypes.STRING,
      cwide: DataTypes.STRING,
      cheight: DataTypes.STRING,
      difflong: DataTypes.STRING,
      diffwide: DataTypes.STRING,
      diffheight: DataTypes.STRING,
      cX: DataTypes.STRING,
      cY: DataTypes.STRING,
      cZ: DataTypes.STRING,
      cOZ: DataTypes.STRING,
      rX: DataTypes.STRING,
      rY: DataTypes.STRING,
      rZ: DataTypes.STRING,
      rEX: DataTypes.STRING,
      rEY: DataTypes.STRING,
      rEZ: DataTypes.STRING,
      timestamp: DataTypes.DATE,
    },
    {
      sequelize,
      modelName: "CameraCompare",
    }
  );
  return CameraCompare;
};
